import request from "@/utils/request";

// 查询钱包列表
export function walletTypeList(query) {
  return request({
    url: "/walletType/page",
    method: "get",
    params: query,
  });
}

// 新增钱包
export function insertWallet(data) {
  return request({
    url: "/walletType/insert",
    method: "post",
    data: data,
  });
}

// 查询钱包详细
export function detailWallet(id) {
  return request({
    url: "/walletType/detail/" + id,
    method: "get",
  });
}

// 修改钱包
export function modifyWallet(data) {
  return request({
    url: "/walletType/modify",
    method: "put",
    data: data,
  });
}

// 删除钱包
export function delWallet(id) {
  return request({
    url: "/walletType/del/" + id,
    method: "delete",
  });
}
